package com.my.ext.controller;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.my.ext.entity.User;
import com.my.ext.mapper.ContributionMapper;
import com.my.ext.service.IContributionService;
import com.my.ext.utils.ResultObject;

@RestController
@RequestMapping(value = "/api/contribution" , method = {RequestMethod.GET,RequestMethod.POST})
public class ContributionController {

	@Autowired
	IContributionService service;
	
	@RequestMapping("/queryByGroup")
	public ResultObject queryByGroup(int groupid) {
		return service.queryGroupContribution(groupid);
	}
	
}
